package com.sunwayworld.basemodule.business.pjtask.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.business.pjtask.bean.LimsPjFolderBean;
import com.sunwayworld.basemodule.business.pjtask.service.LimsPjFolderService;
import com.sunwayworld.framework.support.base.resource.GenericResource;

@RequestMapping("/secure/basemodule/business/pj-folders")
public interface LimsPjFolderResource extends GenericResource<LimsPjFolderService, LimsPjFolderBean, Long> {

    @Log(value = "任务调度提交", type = LogType.CONTROLLER)
    @PostMapping(value = "/submit/folder-result")
    JSONObject folderSubmit(RestJsonWrapperBean wrapperBean);

    @Log(value = "任务调度终止", type = LogType.CONTROLLER)
    @PostMapping(value = "/submit/folder-stop")
    JSONObject folderStop(RestJsonWrapperBean wrapperBean);
}
